package com.ebt.m.customer.util;

import android.app.Activity;
import android.content.Context;
import android.content.Intent;
import android.support.v4.app.Fragment;

import com.ebt.m.customer.constant.CustomerConstant;
import com.ebt.m.customer.ui.ActivityCustomerAll;
import com.ebt.m.customer.ui.ActivityCustomerDetail;

public class CustomerNavigator {

	public static void startActivityCustomerDetailInEdit(Context context, String uuid){
		Intent intent = new Intent(context, ActivityCustomerDetail.class);
		intent.putExtra(CustomerConstant.CUSTOMER_DETAIL_MODE, CustomerConstant.CUSTOMER_DETAIL_MODE_EDIT);
		intent.putExtra(CustomerConstant.CUSTOMER_UUID, uuid);
		context.startActivity(intent);
	}

    public static void startActivityCustomerDetail(Context context){
        Intent intent = new Intent(context, ActivityCustomerDetail.class);
        intent.putExtra(CustomerConstant.CUSTOMER_DETAIL_MODE, CustomerConstant.CUSTOMER_DETAIL_MODE_ADD);
        context.startActivity(intent);
    }

    public static void startActivityCustomerAllInEdit(Context context, String customerUuid, int viewPagerIndex){
        Intent intent = new Intent(context, ActivityCustomerAll.class);
        intent.putExtra(CustomerConstant.CUSTOMER_DETAIL_MODE, CustomerConstant.CUSTOMER_DETAIL_MODE_EDIT);
        intent.putExtra(CustomerConstant.CUSTOMER_UUID, customerUuid);
        intent.putExtra(CustomerConstant.CustomerAll.VIEW_PAGER_INDEX, viewPagerIndex);
        context.startActivity(intent);
    }
	

}